<template>
  <div>
    <p>价格：{{sun}}</p>
    <MySon @spread="fn"></MySon>
  </div>
</template>

<script>
import MySon from './components/son.vue'
export default {
  data(){
    return {
      sun:0
  }
  },
  methods:{
    fn(val){
      // console.log(18,val)
      this.sun=val
    }
  },
  components:{
        MySon
      }
  
}
</script>

<style>

</style>
